package calculator;

/**
 * 抽象 运算 类.
 *
 * @author GongXincheng
 * @since 2019-09-13 13:58
 */
public abstract class AbstractOperation {

    private double leftNum;
    private double rightNum;

    /**
     * 获取运算结果
     * @return 结果
     */
    abstract double getResult();


    ////////////////////////////////

    public double getLeftNum() {
        return leftNum;
    }

    public void setLeftNum(double leftNum) {
        this.leftNum = leftNum;
    }

    public double getRightNum() {
        return rightNum;
    }

    public void setRightNum(double rightNum) {
        this.rightNum = rightNum;
    }
}
